package com.bwhx.eruler.service;

import java.io.Serializable;
import java.util.List;
import java.util.Map;

import com.bwhx.eruler.bean.Baofei;
import com.bwhx.eruler.bean.ChuKuDan;
import com.bwhx.eruler.bean.Page;
import com.bwhx.eruler.bean.Ruler;

public interface RulerService {
	
	public List<Ruler> find(Ruler ruler);
	public Ruler get(Serializable id);
	public void insert(Ruler ruler);
	public void update(Ruler ruler);
	public void delete(Serializable id);
	public void delete(Serializable[] ids);
	public List<Ruler> findByName(String rulername);
	public String insertSN(String device);
	public void inputRuler(Ruler r);
	public List<Ruler> list(Page p, Long startdateLong, Long enddateLong);
	public Integer count(Ruler r, Long startdateLong, Long enddateLong);
	public void insertChuKuDan(ChuKuDan chukudan);
	public void update(ChuKuDan chukudan);
	public Ruler findByMAC(String mac);
	public String findUnusedSN(String device);
	public Boolean isRsnAvliable(String rsn);
	public Ruler findBySn(String opcode);
	public Ruler findChuKuBySn(String opc);
	public Ruler find3BySn(String value);
	public void insertRulerUser(Map<String, Integer> paramMap);
	public void updateRFTime(Map map);
	public void insertRulerSdk(Map<String, Object> paramMap);
	public Ruler findByRSN(String rsn);
	public List<Ruler> list(Page p);
	public Integer count(Ruler r);
	public Ruler findAvailableRulerBySn(String opc);
	public Ruler findChuKuAndBaoFeiBySn(String opc);

}
